package wzc.design_pattern.construction.decorator;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description 装饰器（Decorator）: 定义装饰器的抽象类
 */

public abstract class CoffeeDecorator implements Coffee {
    protected Coffee coffee;

    public CoffeeDecorator(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public String getDescription() {
        return coffee.getDescription();
    }

    @Override
    public double cost() {
        return coffee.cost();
    }
}
